package cn.tedu.egweibo6.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class UserLoginDTO {
    @ApiModelProperty(value = "密码", required = true, dataType = "string")
    @Size(min = 6, max = 15, message = "密码长度为6-10")
    private String password;
    @ApiModelProperty(value = "用户名", required = true, dataType = "string")
    private String username;
}
